package com.cap.bts.crmdp.dealer.meal.domain;

import java.io.Serializable;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.cap.bts.framework.common.domain.BaseDomain;

/**
 * 套餐的详细Model
 * 
 * @author liZhiYong
 * @version $Id: MeallineModel.java, v 0.1 2015-9-14 下午3:26:38 1111 Exp $
 */
@Entity
@Table(name = "TM_RAW_PACKAGE_REDEMPTION_LINES")
@AttributeOverrides({
		@AttributeOverride(name = "createBy", column = @Column(name = "CREATE_BY")),
		@AttributeOverride(name = "createDate", column = @Column(name = "CREATE_DATE", nullable = false)),
		@AttributeOverride(name = "lastUpdateBy", column = @Column(name = "LAST_UPDATE_BY")),
		@AttributeOverride(name = "lastUpdateDate", column = @Column(name = "LAST_UPDATE_DATE"))})
public class MeallineModel extends BaseDomain implements Serializable {
	private static final long serialVersionUID = 1L;

	private Long id;

	private Long packageDefId;

	private Long ticketDefId;

	private String shortName;

	private String description;

	private Integer numberOfUse;

	private String hasVerificationCode;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "PACKAGE_DEF_ID")
	public Long getPackageDefId() {
		return packageDefId;
	}

	public void setPackageDefId(Long packageDefId) {
		this.packageDefId = packageDefId;
	}

	@Column(name = "TICKET_DEF_ID")
	public Long getTicketDefId() {
		return ticketDefId;
	}

	public void setTicketDefId(Long ticketDefId) {
		this.ticketDefId = ticketDefId;
	}

	@Column(name = "SHORT_NAME")
	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	@Column(name = "DESCRIPTION")
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "NUMBER_OF_USE")
	public Integer getNumberOfUse() {
		return numberOfUse;
	}

	public void setNumberOfUse(Integer numberOfUse) {
		this.numberOfUse = numberOfUse;
	}

	@Column(name = "HAS_VERIFICATION_CODE")
	public String getHasVerificationCode() {
		return hasVerificationCode;
	}

	public void setHasVerificationCode(String hasVerificationCode) {
		this.hasVerificationCode = hasVerificationCode;
	}

}
